Release 10.1A: OpenEdge Development:
Progress 4GL Reference


BASE64-DECODE function

Converts a Base64 character string into a binary value. The result is a MEMPTR containing the binary data.

Syntax

BASE64-DECODE ( expression ) 

expression

A CHARACTER or LONGCHAR expression containing the string you want to convert.

Example

Following is an example using the BASE64-DECODE function:

DEF VAR decdmptr AS MEMPTR.
DEF VAR decdlngc AS LONGCHAR.

COPY-LOB FROM FILE "C:\myicons\testencode" TO decdlngc.
decdmptr = BASE64-DECODE(decdlngc).
COPY-LOB FROM decdmptr TO FILE "C:\myicons\test.ico". 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095